import json
import yaml


def get_json_config(config_path):
    with open(config_path, 'r') as f:
        config = json.load(f)
    return config


def get_yaml_config(config_path):
    with open(config_path, 'r') as f:
        config = yaml.safe_load(f)
    return config
